@import '../../common/css/component/material';

$clock-height: 20px;

.analyse__player_strip {
  position: absolute;
  right: 0;
  display: flex;

  &.top {
    top: #{-$clock-height};
  }

  &.bottom {
    top: var(--cg-height, 100%);
    z-index: 1; // over the board coords
  }

  /* Where to put them in col1 layout? It moves the entire board and controls down for little benefit */
  @include breakpoint($mq-col1) {
    display: none;
  }
}

.analyse__clock {
  @extend %metal, %box-shadow;

  padding: 0 0.5em;
  margin-left: 12px;
  height: $clock-height;
  font-weight: bold;
  text-align: center;

  &.top {
    @extend %box-radius-top;
  }

  &.bottom {
    @extend %box-radius-bottom;
  }

  &.active {
    background: mix($c-primary, $c-bg-box, 30%);
  }

  tenths {
    font-size: 80%;
  }
}

.material {
  padding-right: 1px;

  mpiece {
    width: 21px;
    height: 21px;

    &.pawn {
      margin-left: -10px;
    }
  }
  score {
    margin-top: -2px;
  }
}

.material-top {
  margin-top: -1px;
}

.material-bottom {
  margin-top: 1px;
}
